package com.bittech.wiki_learn.service;

import com.bittech.wiki_learn.domain.Demo;
import com.bittech.wiki_learn.mapper.DemoMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DemoService {
    // Resource是JDK内置注解，等于Spring提供的@Autowired
    @Resource
    private DemoMapper demoMapper;

    public List<Demo> getAll() {
        return demoMapper.selectByExample(null);
    }
}
